package node;

import group.GeoGroup;

public class IntersectionValidator {

	private final GeoGroup group;
	
	public IntersectionValidator(GeoGroup group) {
		this.group = group;
	}
	
	public boolean intersects(GeoNode node) {
		for (GeoNode other : group.getGeoNodes()) {
			if (node.intersect(other))
				return true;
		}
		return false;
	}
}
